package com.ocom.mqsubsidy.feign;

import com.alibaba.fastjson.JSONObject;
import com.ocom.common.constant.PayHandleUrl;
import com.ocom.common.dto.SubsidyDto;
import com.ocom.common.entity.card.EntityXfRecordProcess;
import com.ocom.common.entity.pay.EntityAbnormal;
import com.ocom.common.entity.payconfig.EntitySubsidyData;
import com.ocom.common.request.payhandle.GetRecordByOrderNoRequest;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "payhandle")
public interface PayHandleClientService {

    @PostMapping(PayHandleUrl.URL_getRecordByOrderno)
    public Result getRecordByOrderno(@RequestBody GetRecordByOrderNoRequest request);


    @PostMapping(PayHandleUrl.URL_sendByOrderno)
    public Result sendByOrderno(@RequestBody EntityXfRecordProcess request);

    @PostMapping(PayHandleUrl.URL_addAbnormal)
    public Result addAbnormal(@RequestBody EntityAbnormal request);

    @PostMapping(PayHandleUrl.URL_ccbzhshGrantSubsidy)
    public Result ccbzhshGrantSubsidy(@RequestBody SubsidyDto subsidyDto);
}
